<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
       <html>
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       <title>Resume列表</title>
       </head>
       <body>

       <h1 align="center">Resume列表</h1>
       <h2>我是服务器：${pageContext.request.localPort}</h2>
       <h2>当前sessionId：${pageContext.session.id}</h2>
             <h3 align="center"><a href="toAddResume" >添加</a></h3>

       <table width="60%" align="center" border="1">
              <tr>
                     <td>序号</td>
                     <td>姓名</td>
                     <td>地址</td>
                     <td>电话</td>
                     <td>操作</td>
              </tr>

              <c:forEach items="${resumes}" var="resume">
                     <tr>
                            <td>${resume.id}</td>
                            <td>${resume.name}</td>
                            <td>${resume.address}</td>
                            <td>${resume.phone}</td>

                            <td><a href="updateResume?resumeId=${resume.id}">修改</a>
                                   <a href="deleteResume?resumeId=${resume.id}">删除</a>
                            </td>
                     </tr>
              </c:forEach>
       </table>

       </body>
       </html>